package com.chixing.day17_reflect_thread.thread;

public class OddThread extends Thread{
    @Override
    public void run() {
        for (int i=0;i<=50;i++){
            if (i%2!=0){
                System.out.println("奇数："+i);
                try {
                    Thread.sleep(2);
                } catch (InterruptedException e) {
                    throw new RuntimeException(e);
                }
            }
        }
    }
}
